package com.ruoyi.framework.killbill;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.killbill.bus.api.BusEvent;

import java.util.UUID;

public class DemoEvent implements BusEvent {

    private final String leaveId;

    @JsonCreator
    public DemoEvent(@JsonProperty("leaveId") final String leaveId) {
        this.leaveId = leaveId;
    }
    @Override
    public Long getSearchKey1() {
        return null;
    }

    @Override
    public Long getSearchKey2() {
        return null;
    }

    @Override
    public UUID getUserToken() {
        return null;
    }

    public String getLeaveId() {
        return leaveId;
    }
}
